package reflectExample;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
class Person {
    private String name;
    private int age;
    public String pub;
    protected String pro;
    String def;
    private String pri;

    public Person(String name, int age) {
        this.name = name;
        this.age = age;
    }
    public void eat(){
        System.out.println("Eating……");
    }
    public void eat(String food){
        System.out.println("Eating"+food+"");
    }
}

